package com.sgcc.system.api;

import com.sgcc.common.core.constant.ServiceNameConstants;
import com.sgcc.common.core.web.domain.AjaxResult;
import com.sgcc.system.api.domain.SysDept;
import com.sgcc.system.api.domain.SysDistrict;
import com.sgcc.system.api.factory.RemoteDeptFallbackFactory;
import com.sgcc.system.api.factory.RemoteDistrictFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * 用户服务
 * 
 * @author sgcc
 */
@FeignClient(contextId = "remoteDistrictService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteDistrictFallbackFactory.class)
public interface RemoteDistrictService
{
	@RequestMapping(value = "/district/getOrgNO")
    public SysDistrict getOrgNO(@RequestParam("orgId") String orgId);

    @RequestMapping(value = "/district/getOrgNOByDistrictId")
    public SysDistrict getOrgNOByDistrictId(@RequestParam("districtId") String districtId);
}
